/**
 * 单个文件上传
 * 
 * 
*/
function upload(tempPath) {
    let nowtime = new Date().getTime()                    //获取时间戳
    let ext = tempPath.split(".").pop()         //获取扩展名

    let result = wx.cloud.uploadFile({
        cloudPath: nowtime + "." + ext,
        filePath: tempPath
    })
    return result;

}


export { upload }